home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d1 / dos32pat.arc / DOS322.PAT < prev    next >
Text File  |  1986-09-23  |  3KB  |  57 lines

  1. comment *
  2.  
  3. Re: DOS version compatibility with fixed disks.
  4.  
  5. When one formats a fixed disk with FORMAT.COM, a boot sector is written
  6. on the partition that is formatted. The DOS version is written at the
  7. beginning of this sector in ASCII characters. This is followed by the
  8. BIOS parameter block that contains information about starting sector,
  9. cluster size and so on.
  10. When booting up, IBMBIO.COM reads the boot sector and decides whether
  11. to use the information in the boot sector's parameter block on the
  12. basis of the name of the DOS version it finds there. If it doesn't
  13. recognize the name as a legal one, it uses a standard internal table
  14. and ignores the parameter block's information.
  15. If one has made any modifications to their DOS partition's format for
  16. the purpose of reducing the cluster size (for example), then DOS will
  17. acknowledge this change.
  18. So far, so good. Now comes a new version of DOS. Will it recognize
  19. a modification to the previous DOS's partition? Maybe. . .
  20.  
  21. DOS 2.0 and 2.1 both write "IBM  2.0" in their boot sectors.
  22. DOS 3.0, 3.1 and 3.2 write their own respective version numbers as one
  23. would expect.
  24. DOS 2.0 and 2.1 do not read the name or the parameter block.
  25. DOS 3.0 will accept a name of 2.0 or 3.0.
  26. DOS 3.1 will accept a name of 2.0 or 3.1 but not 3.0.
  27. DOS 3.2 will accept a name of 2.0, 3.0 or 3.2 but not 3.1.
  28. Apparently, someone wasn't paying attention.
  29.  
  30. One cannot smoothly migrate from 3.0 to 3.1 or from 3.1 to 3.2.
  31. No problem going from 3.0 to 3.2.
  32. All DOS versions can completely corrupt the data on a disk whose format
  33. is misinterpreted.
  34.  
  35. The patches below modify IBMBIO to accept disks formatted by preceeding
  36. versions. Alternatively, one may use debug.com or other utility to change
  37. the name in the boot sector to gain compatibility with a version or 2 but
  38. this presupposes that a subset of versions will be used to access the disk.
  39. *
  40. PATCH IBMBIO.COM ; VERSION 3.2
  41. COMMENT *
  42.  This patches DOS 3.2 to accept boot bpb from fixed disks formatted by
  43.           DOS 2.0, 3.0, 3.1 or 3.2 *
  44. 2F48
  45. FROM  DB 26,80,3E,0A,0,'0'          ;CMP ES:[000A],'0'
  46.       DB 75,2                       ;JNE TRY '2'
  47.       DB 0EBH,8                     ;JMP GET FMT FROM BOOT
  48.       DB 26,80,3E,0A,0,'2'          ;CMP ES:[000A],'2'
  49.       DB 75,0E2                     ;JNE STANDARD TABLE
  50.  
  51. TO    DB 26,80,3E,0A,0,'0'          ;CMP ES:[000A],'0'
  52.       DB 72,0EC                     ;JB  STANDARD TABLE
  53.       DB 90,90                      ;NOPS
  54.       DB 26,80,3E,0A,0,'2'          ;CMP ES:[000A],'2'
  55.       DB 77,0E2                     ;JA  STANDARD TABLE
  56. ;end of patch
  57.